/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Lenovo
 * Date: 2025-03-19
 * Time: 13:24
 */
public class Main {
    public static void main(String[] args) {
        Dog dog1 = new Dog(); // 调用子类的无参构造方法
        Dog dog2 = new Dog("baby", 2); // 调用子类的有参构造方法
        Dog dog3 = new Dog(3);
    }
}

/*

运行：
        100
        200
        300
        400
*/
